package com.client.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.common.controller.IUserController;
import com.common.service.IUserService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/user")
@Api(value = "登录", tags = {"登录"})
public class UserController implements IUserController {


    @Reference(check = false, url = "dubbo://127.0.0.1:20882")
    private IUserService userService;

    @Override
    @GetMapping(value = "/get")
    public String getUser() {
        return userService.getUser();
    }
}
